package com.erju.utils;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @Description: 封装token来替换Shiro原生Token，要实现AuthenticationToken接口
 * @author: 86132
 * @date: 2022.03.07
 */
public class JWTToken implements AuthenticationToken {

    private String token;

    public JWTToken(String token){
        this.token=token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

}
